import {
    PieChartOutlined,
    UserOutlined,
    HomeOutlined,
    UsergroupAddOutlined,
    UserAddOutlined,
    FileImageOutlined,
    FileAddOutlined,
    ProjectOutlined,
    ProfileOutlined,
    ShopOutlined,
    DatabaseOutlined,
    LineChartOutlined,
    EnvironmentOutlined,
    EditOutlined,
    EditTwoTone,
    FileOutlined,
    ExportOutlined,
    EnvironmentFilled,
    EnvironmentTwoTone,
    EditFilled 
} from '@ant-design/icons';
import User from '../pages/user/User';
import Admin from '../pages/user/Admin';
import BannerList from '../pages/banner/Index';
import BannerAdd from '../pages/banner/Add';
import ProList from '../pages/pro/ProList';
import RecommendList from '../pages/pro/RecommendList';
import EchartList from '../pages/data/Echarts';
import RichEditor from '../pages/editor/Index'
import MdEditor from '../pages/editor/Md';
import GdMap from '../pages/map/Gd';
import BdMap from '../pages/map/Bd';
import Home from "../Home"
import ExcelImport from '../pages/excel/Import';
import ExcelExport from '../pages/excel/Export';
const items = [
    {
        label: '系统首页',
        key: '/',
        icon: <HomeOutlined />,
        children: [{
            label: '首页',
            key: 'home',
            icon: <UserOutlined />,
            element:<Home/>
        },]
    },
    {
        label: '账号管理',
        key: '/admin',
        icon: <UsergroupAddOutlined />,
        children: [{
            label: '用户列表',
            key: 'admin/user',
            icon: <UserOutlined />,
            element:<User/>
        }, {
            label: '管理员列表',
            key: 'admin/list',
            icon: <UserAddOutlined />,
            element:<Admin/>
        },]
    },
    {
        label: '轮播图管理',
        key: '/banner',
        icon: <FileImageOutlined />,
        children: [
            {
                label: '轮播图列表',
                key: 'banner/list',
                icon: <FileImageOutlined />,
                element:<BannerList/>

            },
            {
                label: '添加轮播图',
                key: 'banner/add',
                icon: <FileAddOutlined />,
                element:<BannerAdd/>
            },
        ]
    },
    {
        label: '商品管理',
        key: '/pro',
        icon: <ShopOutlined />,
        children: [
            {
                label: '商品列表',
                key: 'pro/list',
                icon: <ProfileOutlined />,
                element:<ProList/>
            },
            {
                label: '推荐列表',
                key: 'pro/recommend',
                icon: <ProjectOutlined />,
                element:<RecommendList/>
            }
        ]
    },
    {
        label: '数据管理',
        key: '/data',
        icon: <DatabaseOutlined />,
        children: [
            {
                label: '数据列表',
                key: 'data/echarts',
                icon: <LineChartOutlined />,
                element:<EchartList/>
            },

        ]
    },
    {
        label: '编辑器管理',
        key: '/editor',
        icon: <EditOutlined />,
        children: [{
            label: '富文本编辑器',
            key: 'editor/index',
            icon: <FileOutlined />,
            element:<RichEditor/>
        }, 
        {
            label: 'MD编辑器',
            key: 'editor/md',
            icon: <EditTwoTone />,
            element:<MdEditor/>
        },
    ]
    },
    {
        label: '文件管理',
        key: '/excel',
        icon: <FileOutlined />,
        children: [{
            label: '文件导入',
            key: 'excel/import',
            icon: <FileAddOutlined />,
            element:<ExcelImport/>
        }, {
            label: '文件导出',
            key: 'excel/export',
            icon: <ExportOutlined />,
            element:<ExcelExport/>
        },]
    },
    {
        label: '地图管理',
        key: '/map',
        icon: <EnvironmentOutlined />,
        children: [{
            label: '高德地图',
            key: 'map/gd',
            icon: <EnvironmentFilled />,
            element:<GdMap/>
        }, {
            label: '百度地图',
            key: 'map/bd',
            icon: <EnvironmentTwoTone />,
            element:<BdMap/>
        },]
    },

]

export default items;